

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>开发集群的部署 &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/css/custom.css" type="text/css" />

  
  
    <link rel="shortcut icon" href="../../_static/favicon.ico"/>
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
        <script src="../../_static/jquery.js"></script>
        <script src="../../_static/underscore.js"></script>
        <script src="../../_static/doctools.js"></script>
    
    <script type="text/javascript" src="../../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../../genindex/" />
    <link rel="search" title="Search" href="../../search/" />
    <link rel="next" title="开发流程" href="../development-workflow/" />
    <link rel="prev" title="CephFS delayed deletion" href="../delayed-delete/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../" class="icon icon-home"></a> &raquo;</li>
        
          <li><a href="../internals/">Ceph 内幕</a> &raquo;</li>
        
      <li>开发集群的部署</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../../_sources/dev/dev_cluster_deployement.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../../">
          

          
            
            <img src="../../_static/logo.png" class="logo" alt="Logo"/>
          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../start/intro/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../cephfs/">Ceph 文件系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../developer_guide/">开发者指南</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../internals/">Ceph 内幕</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../blkin/">Tracing Ceph With LTTng</a></li>
<li class="toctree-l2"><a class="reference internal" href="../blkin/#tracing-ceph-with-blkin">Tracing Ceph With Blkin</a></li>
<li class="toctree-l2"><a class="reference internal" href="../bluestore/">BlueStore Internals</a></li>
<li class="toctree-l2"><a class="reference internal" href="../cache-pool/">Cache pool</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ceph_krb_auth/">如何配置好 Ceph Kerberos 认证的详细文档</a></li>
<li class="toctree-l2"><a class="reference internal" href="../cephfs-mirroring/">CephFS Mirroring</a></li>
<li class="toctree-l2"><a class="reference internal" href="../cephfs-reclaim/">CephFS Reclaim Interface</a></li>
<li class="toctree-l2"><a class="reference internal" href="../cephfs-snapshots/">CephFS 快照</a></li>
<li class="toctree-l2"><a class="reference internal" href="../cephx/">Cephx</a></li>
<li class="toctree-l2"><a class="reference internal" href="../cephx_protocol/">Cephx 认证协议详细阐述</a></li>
<li class="toctree-l2"><a class="reference internal" href="../config/">配置管理系统</a></li>
<li class="toctree-l2"><a class="reference internal" href="../config-key/">config-key layout</a></li>
<li class="toctree-l2"><a class="reference internal" href="../context/">CephContext</a></li>
<li class="toctree-l2"><a class="reference internal" href="../continuous-integration/">Continuous Integration Architecture</a></li>
<li class="toctree-l2"><a class="reference internal" href="../corpus/">资料库结构</a></li>
<li class="toctree-l2"><a class="reference internal" href="../cpu-profiler/">Oprofile 的安装</a></li>
<li class="toctree-l2"><a class="reference internal" href="../cxx/">C++17 and libstdc++ ABI</a></li>
<li class="toctree-l2"><a class="reference internal" href="../deduplication/">去重</a></li>
<li class="toctree-l2"><a class="reference internal" href="../delayed-delete/">CephFS delayed deletion</a></li>
<li class="toctree-l2 current"><a class="current reference internal" href="#">开发集群的部署</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id2">用法</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id3">选项</a></li>
<li class="toctree-l3"><a class="reference internal" href="#id4">环境变量</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#id5">在同一机器上部署多套开发集群</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#id6">用法</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="../development-workflow/">开发流程</a></li>
<li class="toctree-l2"><a class="reference internal" href="../documenting/">为 Ceph 写作文档</a></li>
<li class="toctree-l2"><a class="reference internal" href="../encoding/">序列化（编码、解码）</a></li>
<li class="toctree-l2"><a class="reference internal" href="../erasure-coded-pool/">纠删码存储池</a></li>
<li class="toctree-l2"><a class="reference internal" href="../file-striping/">File striping</a></li>
<li class="toctree-l2"><a class="reference internal" href="../freebsd/">FreeBSD Implementation details</a></li>
<li class="toctree-l2"><a class="reference internal" href="../generatedocs/">Ceph 文档的构建</a></li>
<li class="toctree-l2"><a class="reference internal" href="../health-reports/">Health Reports</a></li>
<li class="toctree-l2"><a class="reference internal" href="../iana/">IANA 号</a></li>
<li class="toctree-l2"><a class="reference internal" href="../kubernetes/">Hacking on Ceph in Kubernetes with Rook</a></li>
<li class="toctree-l2"><a class="reference internal" href="../libs/">库体系结构</a></li>
<li class="toctree-l2"><a class="reference internal" href="../logging/">集群日志的用法</a></li>
<li class="toctree-l2"><a class="reference internal" href="../logs/">调试日志</a></li>
<li class="toctree-l2"><a class="reference internal" href="../macos/">在 MacOS 上构建</a></li>
<li class="toctree-l2"><a class="reference internal" href="../messenger/">Messenger notes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../mon-bootstrap/">Monitor bootstrap</a></li>
<li class="toctree-l2"><a class="reference internal" href="../mon-elections/">Monitor Elections</a></li>
<li class="toctree-l2"><a class="reference internal" href="../mon-on-disk-formats/">ON-DISK FORMAT</a></li>
<li class="toctree-l2"><a class="reference internal" href="../mon-osdmap-prune/">FULL OSDMAP VERSION PRUNING</a></li>
<li class="toctree-l2"><a class="reference internal" href="../msgr2/">msgr2 协议（ msgr2.0 和 msgr2.1 ）</a></li>
<li class="toctree-l2"><a class="reference internal" href="../network-encoding/">Network Encoding</a></li>
<li class="toctree-l2"><a class="reference internal" href="../network-protocol/">网络协议</a></li>
<li class="toctree-l2"><a class="reference internal" href="../object-store/">对象存储架构概述</a></li>
<li class="toctree-l2"><a class="reference internal" href="../osd-class-path/">OSD class path issues</a></li>
<li class="toctree-l2"><a class="reference internal" href="../peering/">互联</a></li>
<li class="toctree-l2"><a class="reference internal" href="../perf/">Using perf</a></li>
<li class="toctree-l2"><a class="reference internal" href="../perf_counters/">性能计数器</a></li>
<li class="toctree-l2"><a class="reference internal" href="../perf_histograms/">Perf histograms</a></li>
<li class="toctree-l2"><a class="reference internal" href="../placement-group/">PG （归置组）说明</a></li>
<li class="toctree-l2"><a class="reference internal" href="../quick_guide/">开发者指南（快速）</a></li>
<li class="toctree-l2"><a class="reference internal" href="../rados-client-protocol/">RADOS 客户端协议</a></li>
<li class="toctree-l2"><a class="reference internal" href="../rbd-diff/">RBD 增量备份</a></li>
<li class="toctree-l2"><a class="reference internal" href="../rbd-export/">RBD Export &amp; Import</a></li>
<li class="toctree-l2"><a class="reference internal" href="../rbd-layering/">RBD Layering</a></li>
<li class="toctree-l2"><a class="reference internal" href="../release-checklists/">Release checklists</a></li>
<li class="toctree-l2"><a class="reference internal" href="../release-process/">Ceph Release Process</a></li>
<li class="toctree-l2"><a class="reference internal" href="../seastore/">SeaStore</a></li>
<li class="toctree-l2"><a class="reference internal" href="../sepia/">Sepia 社区测试实验室</a></li>
<li class="toctree-l2"><a class="reference internal" href="../session_authentication/">Session Authentication for the Cephx Protocol</a></li>
<li class="toctree-l2"><a class="reference internal" href="../testing/">测试笔记</a></li>
<li class="toctree-l2"><a class="reference internal" href="../versions/">Public OSD Version</a></li>
<li class="toctree-l2"><a class="reference internal" href="../vstart-ganesha/">NFS CephFS-RGW Developer Guide</a></li>
<li class="toctree-l2"><a class="reference internal" href="../wireshark/">Wireshark Dissector</a></li>
<li class="toctree-l2"><a class="reference internal" href="../zoned-storage/">Zoned Storage Support</a></li>
<li class="toctree-l2"><a class="reference internal" href="../osd_internals/">OSD 开发者文档</a></li>
<li class="toctree-l2"><a class="reference internal" href="../mds_internals/">MDS 开发者文档</a></li>
<li class="toctree-l2"><a class="reference internal" href="../radosgw/">RADOS 网关开发者文档</a></li>
<li class="toctree-l2"><a class="reference internal" href="../ceph-volume/">ceph-volume 开发者文档</a></li>
<li class="toctree-l2"><a class="reference internal" href="../crimson/">Crimson developer documentation</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <div class="section" id="id1">
<h1>开发集群的部署<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
<p>要从事 ceph 开发，可以用 <em>vstart.sh</em> 工具部署一个位于本地的伪集群，以便测试。</p>
<div class="section" id="id2">
<h2>用法<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
<p>用此工具可在本机部署伪集群以便开发，它可以启动 rgw 、 mon 、
osd 、和/或 mds ，不指定的话会启动所有类型。</p>
<p>要启动开发集群，执行此命令：</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">vstart</span><span class="o">.</span><span class="n">sh</span> <span class="p">[</span><span class="n">OPTIONS</span><span class="p">]</span><span class="o">...</span>
</pre></div>
</div>
<p>要停止集群，可以执行：</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">stop</span><span class="o">.</span><span class="n">sh</span>
</pre></div>
</div>
</div>
<div class="section" id="id3">
<h2>选项<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
<dl class="std option">
<dt id="cmdoption-bluestore">
<code class="sig-name descname"><span class="pre">--bluestore</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-bluestore" title="Permalink to this definition">¶</a></dt>
<dd><p>指定 bluestore 作为 OSD 的对象存储后端。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-cache">
<code class="sig-name descname"><span class="pre">--cache</span></code><code class="sig-prename descclassname"> <span class="pre">&lt;pool&gt;</span></code><a class="headerlink" href="#cmdoption-cache" title="Permalink to this definition">¶</a></dt>
<dd><p>给指定存储池配置一个缓存层。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-d">
<span id="cmdoption-debug"></span><code class="sig-name descname"><span class="pre">-d</span></code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname"><span class="pre">,</span> </code><code class="sig-name descname"><span class="pre">--debug</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-d" title="Permalink to this definition">¶</a></dt>
<dd><p>在调试模式下启动。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-e">
<code class="sig-name descname"><span class="pre">-e</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-e" title="Permalink to this definition">¶</a></dt>
<dd><p>创建一个纠删码存储池。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-f">
<span id="cmdoption-filestore"></span><code class="sig-name descname"><span class="pre">-f</span></code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname"><span class="pre">,</span> </code><code class="sig-name descname"><span class="pre">--filestore</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-f" title="Permalink to this definition">¶</a></dt>
<dd><p>指定 filestore 作为 OSD 的对象存储后端。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-hitset">
<code class="sig-name descname"><span class="pre">--hitset</span></code><code class="sig-prename descclassname"> <span class="pre">&lt;pool&gt;</span> <span class="pre">&lt;hit_set_type&gt;</span></code><a class="headerlink" href="#cmdoption-hitset" title="Permalink to this definition">¶</a></dt>
<dd><p>启用 hitset 追踪。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-i">
<code class="sig-name descname"><span class="pre">-i</span></code><code class="sig-prename descclassname"> <span class="pre">ip_address</span></code><a class="headerlink" href="#cmdoption-i" title="Permalink to this definition">¶</a></dt>
<dd><p>绑定到指定的 <em>ip_address</em> （ IP 地址），而不是从主机名解析。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-k">
<code class="sig-name descname"><span class="pre">-k</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-k" title="Permalink to this definition">¶</a></dt>
<dd><p>保留旧的配置文件，而非覆盖它们。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-K">
<span id="cmdoption-kstore"></span><code class="sig-name descname"><span class="pre">-K</span></code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname"><span class="pre">,</span> </code><code class="sig-name descname"><span class="pre">--kstore</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-K" title="Permalink to this definition">¶</a></dt>
<dd><p>指定 kstore 作为 OSD 的对象存储后端。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-l">
<span id="cmdoption-localhost"></span><code class="sig-name descname"><span class="pre">-l</span></code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname"><span class="pre">,</span> </code><code class="sig-name descname"><span class="pre">--localhost</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-l" title="Permalink to this definition">¶</a></dt>
<dd><p>用 localhost 作为主机名。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-m">
<code class="sig-name descname"><span class="pre">-m</span></code><code class="sig-prename descclassname"> <span class="pre">ip[:port]</span></code><a class="headerlink" href="#cmdoption-m" title="Permalink to this definition">¶</a></dt>
<dd><p>指定监视器的 <em>ip</em> 地址和端口 <em>port</em> 。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-memstore">
<code class="sig-name descname"><span class="pre">--memstore</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-memstore" title="Permalink to this definition">¶</a></dt>
<dd><p>指定 memstore 作为 OSD 的对象存储后端。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-multimds">
<code class="sig-name descname"><span class="pre">--multimds</span></code><code class="sig-prename descclassname"> <span class="pre">&lt;count&gt;</span></code><a class="headerlink" href="#cmdoption-multimds" title="Permalink to this definition">¶</a></dt>
<dd><p>启用多 MDS 功能、且指定最大活跃数。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-n">
<span id="cmdoption-new"></span><code class="sig-name descname"><span class="pre">-n</span></code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname"><span class="pre">,</span> </code><code class="sig-name descname"><span class="pre">--new</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-n" title="Permalink to this definition">¶</a></dt>
<dd><p>创建一个新集群。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-N">
<span id="cmdoption-not-new"></span><code class="sig-name descname"><span class="pre">-N</span></code><code class="sig-prename descclassname"></code><code class="sig-prename descclassname"><span class="pre">,</span> </code><code class="sig-name descname"><span class="pre">--not-new</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-N" title="Permalink to this definition">¶</a></dt>
<dd><p>重用现有的集群配置（默认行为）。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-nodaemon">
<code class="sig-name descname"><span class="pre">--nodaemon</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-nodaemon" title="Permalink to this definition">¶</a></dt>
<dd><p>用 ceph-run 作为 mon/osd/mds 的包装。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-nolockdep">
<code class="sig-name descname"><span class="pre">--nolockdep</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-nolockdep" title="Permalink to this definition">¶</a></dt>
<dd><p>禁用 lockdep 。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-o">
<code class="sig-name descname"><span class="pre">-o</span></code><code class="sig-prename descclassname"> <span class="pre">config</span></code><a class="headerlink" href="#cmdoption-o" title="Permalink to this definition">¶</a></dt>
<dd><p>把配置 <em>config</em> 加进 ceph 配置的所有段落下。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-rgw_port">
<span id="cmdoption-rgw-port"></span><code class="sig-name descname"><span class="pre">--rgw_port</span></code><code class="sig-prename descclassname"> <span class="pre">&lt;port&gt;</span></code><a class="headerlink" href="#cmdoption-rgw_port" title="Permalink to this definition">¶</a></dt>
<dd><p>指定 ceph rgw 的 HTTP 监听端口。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-rgw_frontend">
<span id="cmdoption-rgw-frontend"></span><code class="sig-name descname"><span class="pre">--rgw_frontend</span></code><code class="sig-prename descclassname"> <span class="pre">&lt;frontend&gt;</span></code><a class="headerlink" href="#cmdoption-rgw_frontend" title="Permalink to this definition">¶</a></dt>
<dd><p>指定 rgw 前端（默认是 civetweb ）。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-rgw_compression">
<span id="cmdoption-rgw-compression"></span><code class="sig-name descname"><span class="pre">--rgw_compression</span></code><code class="sig-prename descclassname"> <span class="pre">&lt;compression_type&gt;</span></code><a class="headerlink" href="#cmdoption-rgw_compression" title="Permalink to this definition">¶</a></dt>
<dd><p>指定 rgw 压缩插件（默认是禁用的）。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-smallmds">
<code class="sig-name descname"><span class="pre">--smallmds</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-smallmds" title="Permalink to this definition">¶</a></dt>
<dd><p>给 MDS 配置小缓存尺寸。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-short">
<code class="sig-name descname"><span class="pre">--short</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-short" title="Permalink to this definition">¶</a></dt>
<dd><p>只能用短对象名，对 ext4 开发版有必要指定。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-valgrind-_-osd-mds-mon">
<span id="cmdoption-valgrind-osd-mds-mon"></span><code class="sig-name descname"><span class="pre">--valgrind[_{osd,mds,mon}]</span></code><code class="sig-prename descclassname"> <span class="pre">'valgrind_toolname</span> <span class="pre">[args...]'</span></code><a class="headerlink" href="#cmdoption-valgrind-_-osd-mds-mon" title="Permalink to this definition">¶</a></dt>
<dd><p>在 valgrind 环境下、用指定的工具和参数，启动 ceph 的 osd/mds/mon/all 二进制。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-without-dashboard">
<code class="sig-name descname"><span class="pre">--without-dashboard</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-without-dashboard" title="Permalink to this definition">¶</a></dt>
<dd><p>不要用 mgr 的仪表盘运行。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-x">
<code class="sig-name descname"><span class="pre">-x</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-x" title="Permalink to this definition">¶</a></dt>
<dd><p>启用 Cephx （默认开启）。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-X">
<code class="sig-name descname"><span class="pre">-X</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-X" title="Permalink to this definition">¶</a></dt>
<dd><p>禁用 Cephx 。</p>
</dd></dl>

</div>
<div class="section" id="id4">
<h2>环境变量<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
<p>{OSD,MDS,MON,RGW}</p>
<p>这些环境变量取值的数值表示你想启动的 ceph 例程数量。</p>
<p>例如：</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">OSD</span><span class="o">=</span><span class="mi">3</span> <span class="n">MON</span><span class="o">=</span><span class="mi">3</span> <span class="n">RGW</span><span class="o">=</span><span class="mi">1</span> <span class="n">vstart</span><span class="o">.</span><span class="n">sh</span>
</pre></div>
</div>
</div>
</div>
<div class="section" id="id5">
<h1>在同一机器上部署多套开发集群<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h1>
<p>要在同一机器上启动多套 ceph 集群，可用 <em>mstart.sh</em> 脚本，它是前述 <em>vstart</em> 的简单包装。</p>
<div class="section" id="id6">
<h2>用法<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
<p>要启动多套集群，你可以用 mstart 分别部署各集群，它会在不同端口上启动各个集群的监视器、 rgw 进程们，这样你就能在同一集群内运行多个监视器、 rgw 等进程了。调用方式如下：</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">mstart</span><span class="o">.</span><span class="n">sh</span> <span class="o">&lt;</span><span class="n">cluster</span><span class="o">-</span><span class="n">name</span><span class="o">&gt;</span> <span class="o">&lt;</span><span class="n">vstart</span> <span class="n">options</span><span class="o">&gt;</span>
</pre></div>
</div>
<p>例如：</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">mstart</span><span class="o">.</span><span class="n">sh</span> <span class="n">cluster1</span> <span class="o">-</span><span class="n">n</span>
</pre></div>
</div>
<p>关闭集群可以用：</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">./</span><span class="n">mstop</span><span class="o">.</span><span class="n">sh</span> <span class="o">&lt;</span><span class="n">cluster</span><span class="o">-</span><span class="n">name</span><span class="o">&gt;</span>
</pre></div>
</div>
</div>
</div>



           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="../development-workflow/" class="btn btn-neutral float-right" title="开发流程" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="../delayed-delete/" class="btn btn-neutral float-left" title="CephFS delayed deletion" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).

    </p>
  </div> 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>